﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Data.SqlClient;

namespace Demo.BusinessLogic
{
    public class BCCalculator
    {
        public double Suma(double? a =  null, double? b = null , double? c=null)
        {
            if (a == null && b == null && c == null)
                throw new  System.ServiceModel.ProtocolException("values are not valid"); 
            return a.GetValueOrDefault() + b.GetValueOrDefault() + c.GetValueOrDefault() ; 
        }
    }
}
